/**
 * Created by yunpeng on 2015/5/8.
 */
var request = require('request');

request.post({url:'http://127.0.0.1:8930/users/login',
        form: {username:'1234567',password:'123321'}},
    function optionalCallback(err, httpResponse, body) {
        console.log(body);
});


/*
request.post({url:'http://127.0.0.1:8930/users/getAuthState',
        header:{
            Authorization:
                'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidXNlcnR5cGUiOjEsImlhdCI6MTQzMTA4MjQ0NywiZXhwIjoxNDMyODEwNDQ3fQ.bkQS9S9u7AjGwOkBqYNim5iYWeIWSv76vWyR6Y9ueFY'
        },
        form: {username:27,type:1}},
    function optionalCallback(err, httpResponse, body) {
        console.log(body);
});
*/
